import request from '/@/utils/request';


// const appUrl = "api.20180807.com/app"
const appUrl = "api.20180807.com/orgapp"
// const appUrl = "127.0.0.1:8808"

export function getProvince(data: object) {
	return request({
		method: 'POST',
		url: `//${appUrl}/api/smoke/org/getProvince`,
		data
	})
}

export function getCity(data: object) {
	return request({
		method: 'POST',
		url: `//${appUrl}/api/smoke/org/getCity`,
		data
	})
}

export function getOrg(data: object) {
	return request({
		method: 'POST',
		url: `//${appUrl}/api/v1/hm/org/getOrg`,
		data
	})
}


/**
 * 登录api接口集合
 * @method signIn 用户登录
 */
export function login(params: object){
	return request({
		url: '/api/v1/system/login',
		method: 'post',
		data: params,
	});
}

/**
 * 获取验证码
 */
export function captcha(){
	return request({
		url:"/api/v1/pub/captcha/get",
		method:"get"
	})
}

/**
 * 退出登录
 */
export function logout(){
	return request({
		url: '/api/v1/system/logout',
		method: 'get',
	});
}
